<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="贾文清">
    <title></title>
    <style>
        main {
            width: 600px;
            height: 300px;
            /* border: 1px solid red; */
            margin: 10px auto;
        }

        main div {
            text-align: center;
            font-size: 30px;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
            display: flex;
            justify-content: space-around;
        }

        ul li {
            width: 100px;
            height: 100px;
            text-align: center;
            margin-top: 15px;
            position: relative;
            background-color: lightgray;
        }

        ul li img {
            position: absolute;
            width: 130px;
            height: 130px;
            border: 1px solid lightgray;
            left: -17%;
            top: -10%;
            opacity: 0;
            z-index: 9;p
            
        }

        ul li img:hover {
           opacity: 1;
        }
    </style>
</head>

<body>
    <main>
        <div>
            名车车标展示
        </div>
        <ul>
            <li>
                <img src="./img/1.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/2.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/3.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/4.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/5.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
        </ul>
        <ul>
            <li>
                <img src="./img/6.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/7.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/8.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/9.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
            <li>
                <img src="./img/10.jpg" alt="">
                <p>BMW</p>
                <p>宝马汽车</p>
            </li>
        </ul>
    </main>
</body>

</html>